package com.jms.tomcat.mapping;

import javax.servlet.Filter;

/**
 * Filter映射类，用于匹配Filter
 */
public class FilterMapping extends JmsMapping<Filter>{

    public FilterMapping(Filter filter, String uri) {
        if (uri == null) {
            throw new IllegalArgumentException(String.format("can not create a ServletMapping for %s, uri is null or empty", filter.getClass().getName()));
        }
        object = filter;
        pattern = buildPattern(uri);
    }

}
